package com.heisen.log;


import com.heisen.base.annotation.EnableXmBase;
import com.heisen.database.annotation.EnableXmMybatisHandler;
import com.heisen.feignClient.annotation.EnableXMOauth2FeignClient;
import com.heisen.security.annotation.EnableXmAuthExceptionHandler;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@EnableXmBase   //开启 base 功能
@EnableXmMybatisHandler  // 开启myybatis功能
@EnableXmAuthExceptionHandler   // 开启全局异常
@EnableXMOauth2FeignClient   // 开启feign
@EnableDiscoveryClient
@EnableGlobalMethodSecurity(prePostEnabled = true)  // 开启权限
@MapperScan("com.heisen.log.mapper")
@SpringBootApplication
public class LogApplication {
    public static void main(String[] args) {
        SpringApplication.run(LogApplication.class, args);
    }

}
